<?php

$TCA['article'] = array(
	'ctrl' => $TCA['article']['ctrl'],
	'interface' => array(
		'showRecordFieldList' => 'pid,hidden,title,alias,article_type,perex,bodytext,view_count'
	),
	'types' => array(
		'1' => array('showitem' => 'pid,hidden,title,alias,article_type,perex,bodytext;;;richtext[paste|bold|italic|underline|formatblock|class|left|center|right|orderedlist|unorderedlist|outdent|indent|link|image]:rte_transform[mode=ts],view_count')
	),
	'palettes' => array(
		'1' => array('showitem' => '')
	),
	'columns' => array(
		'hidden' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:article/Resources/Private/Language/locallang_db_article.xml:article.hidden',
			'config'  => array(
				'type' => 'check',
			),
		),
		'title' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:article/Resources/Private/Language/locallang_db_article.xml:article.title',
			'config'  => array(
				'type' => 'input',
				'size' => 128,
				'eval' => 'trim,required',
			),
		),
		'alias' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:article/Resources/Private/Language/locallang_db_article.xml:article.alias',
			'config'  => array(
				'type' => 'input',
				'size' => 128,
				'eval' => 'trim,required',
			),
		),
		'perex' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:article/Resources/Private/Language/locallang_db_article.xml:article.perex',
			'config'  => array(
				'type' => 'text',
				'cols' => '30',
				'rows' => '5',
			)
		),
		'bodytext' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:article/Resources/Private/Language/locallang_db_article.xml:article.bodytext',
			'config' => Array (
				'type' => 'text',
				'cols' => '30',
				'rows' => '5',
				'wizards' => Array(
					'_PADDING' => 2,
					'RTE' => array(
						'notNewRecords' => 1,
						'RTEonly' => 1,
						'type' => 'script',
						'title' => 'Full screen Rich Text Editing|Formatteret redigering i hele vinduet',
						'icon' => 'wizard_rte2.gif',
						'script' => 'wizard_rte.php',
					),
				),
			),
		),
		'view_count' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:article/Resources/Private/Language/locallang_db_article.xml:article.view_count',
			'config'  => array(
				'type' => 'none',
				'size' => 10,
			),
		),
		'article_type' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:article/Resources/Private/Language/locallang_db_article.xml:article.article_type',
			'config'  => array(
				'type' => 'radio',
				'items' => array(
					array('LLL:EXT:article/Resources/Private/Language/locallang_db_article.xml:article.article_type.article', 0),
					array('LLL:EXT:article/Resources/Private/Language/locallang_db_article.xml:article.article_type.story', 1),
				),
			),
		),
	),
);

?>